/*
 * UartDrv.h
 *
 *  Created on: Apr 6, 2015
 *      Author: ma.xw
 */

#ifndef UARTDRV_H_
#define UARTDRV_H_

typedef void (*ON_RECEIVE_UART_MSG)(unsigned char* pbuf, unsigned long len);

void uart_init(unsigned int baud_rate);

int uart_print_char(unsigned char c);
int uart_printk(const char* pbuf);

#endif /* UARTDRV_H_ */
